package com.bagu.bean1;

import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Client {

    /*使用无参构造的方式创建bean对象*/
    @Test
    public void test1(){
        /*默认使用无参构造来创建bean实例*/
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
        Object testBean = context.getBean("TestBean");
    }

    /*使用静态工厂的方法创建bean对象*/
    @Test
    public void test2(){

    }

}